__author__ = 'East'

import  copy

names = ['ZhangYang', 'GuYun', 'XiangPeng',['alex', 'jack'], 'XuliangChen']

names2 = names.copy()      # 浅复制

print(names)
print(names2)

names[2] = '向鹏'
names[3][0] = 'ALEX'
print(names)
print(names2)

# names = names2      # 深复制
# names = copy.copy(names2)     # 浅复制
# names = copy.deepcopy(names2)     # 深复制

for i in names:
    print(i)
# range(1, 10, 2)
print(names[0:-1:2])
print(names[::2])